#include "blog.h"
void test_logger()
{
    DEBUG("%s","测试");
     int count=0;
    while(count<500000)
    {
        FATAL("测试%d",count++);
    }
}
int main()
{
   
    blog::logger_bulider::ptr lb=std::make_shared<blog::global_logger_bulider>();
    lb->bulid_limitLevel(blog::logLevel::value::WARN);
    lb->bulid_loggerName("test1");
    lb->bulid_logType(blog::log_type::ASYNC_LOG);
    lb->bulid_logSink<blog::stdoutSink>();
    lb->bulid_logSink<blog::fileSink>("./log/atest");
    lb->bulid_logSink<blog::rollBySizeFileSink>("./log/rollLog",1024);
    lb->bulid();
    test_logger();
   

    return 0;
}